{template modoer_header}
<div id="body">
	<div class="myhead"></div>
	<div class="mymiddle">
		<div class="myleft">
			<!--{template 'mmenu','member','member'}-->
		</div>
		<div class="myright">
			<div class="myright_top"></div>
			<div class="myright_middle">
				<h3><cite>当前操作的主题:<span class="font_2">$_G[manage_subject][name]{if $_G[manage_subject][subname]}($_G[manage_subject][subname]){/if}</span>[<a href="javascript:void(0);" onclick="item_subject_manage();">更换</a>]</cite>微站内容管理</h3>
				<div class="mainrail">
					<ul class="optabs">
						<li><a href="{url weixin/member/ac/$ac}">设置</a></li>
						<li><a href="{url weixin/member/ac/$ac/op/navs}">导航</a></li>
						<li class="active"><a href="{url weixin/member/ac/$ac/op/pics}">轮播</a></li>
					</ul>
					<div class="clear"></div>
					<form method="post" name="myform" action="{url weixin/member/ac/$ac/op/$op/rand/$_G[random]}">
					{if $error}<div class="formerror">$error</div>{/if}
					<table width="100%" cellspacing="0" cellpadding="0" class="J_data_table maintable">
						<tr>
							<th width="80">图片</th>
							<th width="*">标题/链接</th>
							<th width="120">操作</th>
						</tr>
					</table>
					<p class="comm-p mt10">
						当您在编辑或删除菜单项后，请点击“提交修改”，提交给网站。
					</p>
					<center style="margin-top:10px;">
						<button type="button" class="J_add_btn def">新增</button>&nbsp;&nbsp;
						<button type="submit" name="dosubmit" value="yes">提交修改</button>&nbsp;
					</center>
					</form>
				</div>
			</div>
		</div>
		<div class="clear"></div>
	</div>
	<div class="mybottom"></div>
</div>

<form class="J_form none"  action="{url modoer/upload/in_ajax/1}" method="post" enctype="multipart/form-data">
	<table width="100%" cellspacing="0" cellpadding="0" class="maintable">
		<tr>
			<td align="right" valign="top" width="60"><span class="font_1">*</span>标题：</td>
			<td width="*">
				<input type="text" name="title" class="t_input" size="40" value="" />
			</td>
		</tr>
		<tr>
			<td align="right" valign="top"><span class="font_1">*</span>链接：</td>
			<td width="*">
				<input type="text" name="url" class="t_input" size="60" value="http://" />
				<select id="cmds" onchange="$(this).prev().val($(this).find(':selected').val());">
					<option value="">==快捷URL==</option>
					{print form_weixin_subject_links($role_obj)}
				</select>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top"><span class="font_1">*</span>图标：</td>
			<td width="*">
				<input type="file" name="picture" accept="image/*" />
				<input type="hidden" name="set_domain" value="N" />
			</td>
		</tr>
	</table>
	<center style="margin-top:10px;">
		<button type="submit" name="dosubmit" value="yes">提交</button>&nbsp;&nbsp;
		<button type="button" class="btn unimportant" data-type="close">关闭</button>
	</center>
</form>
<script type="text/javascript" src="{URLROOT}/static/javascript/item.js"></script>
<script type="text/javascript" src="{URLROOT}/static/javascript/weixin.form.js"></script>
<script type="text/javascript">
$(document).ready(function() {

	var list = new Array();
	<!--{loop $post $key $data}-->
	list.push({
		title:'$data[title]',
		url:'$data[url]',
		picurl:'$data[picurl]'
	});
	<!--{/loop}-->

	var site_pic = new weixin.site_nav_pic_form();
	$.each(list, function(index, val) {
		site_pic.add_item(val);
	});

});
</script>
<!--{eval footer();}-->